<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ page import="java.util.*" %>

<%
Map<String,String> menuMap = new HashMap<String, String>();
    menuMap.put("100","true" );
    menuMap.put("200","true" );
    menuMap.put("300","true" );
    menuMap.put("400","true" );
    menuMap.put("500","true" );
    menuMap.put("600","true" );
    menuMap.put("700","true" );
    menuMap.put("800","true" );
    menuMap.put("900","true" );

 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>功能菜单</title>
<style type="text/css">
body,td,th,div,a,h3,textarea,input{
	font-family: "宋体", "Times New Roman", "Courier New";
	font-size: 14px;
	color: #333333;
}
html{
	overflow-x:hidden;
	overflow-y:scroll;
}
.menuHtml{
	overflow-y:auto;
}
body {
	background-color: #FFFFFF;
	margin: 0px;
}
img{
	border: none;
}
form{
	margin: 0px;
	padding: 0px;
}
input{
	color: #000000;
	height: 22px;
	vertical-align: middle;
}
textarea{
	width: 80%;
	font-weight: normal;
	color: #000000;
}
a{
	color: #666666;
	TEXT-DECORATION:none;
}
a:hover{
	text-decoration: underline;
}
.menuDiv{
	border: 1px solid #CCCCCC;
	background-color: #FFFFFF;
	padding: 1px;
	margin-top: 5px;
	margin-right: 2px;
	margin-left: 5px;
	margin-bottom: 0px;
	border:0;
}
.menuDiv h3{
	font-size: 14px;
	font-weight: bold;
	color: #000000;
	padding-top: 5px;
	padding-right: 5px;
	padding-bottom: 5px;
	padding-left: 15px;
	background-color: #FFFFFF;
	margin: 0px;
	cursor:pointer;
}

.menuDiv ul{
	margin: 0px;
	padding: 0px;
	list-style-type: none;
}
.menuDiv ul li{
	color: #666666;
	background-color: #EEEEEE;
	display: block;
	padding: 5px 2px 5px 15px;
	font-size: 13px;
	margin-top: 1px;
	margin-right: 0px;
	margin-bottom: 0px;
	margin-left: 15px;
	height: 16px;
}
.menuDiv ul li a{
	color: #666666;
	background-color: #FFFFFF;
	display: block;
	padding: 5px 2px 5px 15px;
	font-size: 13px;
	margin-top: -5px;
	margin-right: -5px;
	margin-bottom: -5px;
	margin-left: -15px;
	text-decoration: none;
	height: 16px;
}

.test{
background-color: #000000;
}
.menuDiv ul li a:hover{	
/* 	color: #5985cc; */
}

</style>

</head>
<body>
 <%
 if(menuMap!=null){ 
 	if(!"".equals((menuMap.get("100")))){
 %>
 
    <div class="menuDiv"> 
	  <h3><img src="../images/downimg.gif"> 平台资源管理</h3> 
	  <ul>
	    <li><a href="../clustersMaintain?actionType=query" target="main">集群配置</a></li>
	  	<li><a href="../dgwMaintain?actionType=query" target="main">数据网关</a></li>
        <li><a href="../fesMaintain?actionType=query" target="main">车载前置</a></li>
        <li><a href="../mfesMaintain?actionType=query" target="main">接入前置</a></li>
        <li><a href="../afesMaintain?actionType=query" target="main">应用前置</a></li>
        <li><a href="../dssMaintain?actionType=query" target="main">数据存储</a></li>
      </ul>
	</div>
<%
	}
	if(!"".equals((menuMap.get("200")))){
 %>
	<div class="menuDiv"> 
	  <h3><img src="../images/downimg.gif"> 服务资源管理</h3> 
	  <ul>
	    <li><a href="../enterpriseMaintain?actionType=query" target="main">业务服务对象配置</a></li>
      </ul>	  
	</div>
<%
	}
	if(!"".equals((menuMap.get("300")))){
 %>
	<div class="menuDiv"> 
	  <h3><img src="../images/downimg.gif"> 设备接入管理</h3>
	</div>
<%
	}
	if(!"".equals((menuMap.get("400")))){
 %>
	<div class="menuDiv"> 
	  <h3><img src="../images/downimg.gif"> 平台接入查询</h3> 
	  <ul>
	    <li><a href="../deviceAccessQuery?actionType=deviceAccessQueryInit" target="main">设备接入查询</a></li>
	    <li><a href="../monitorPlatform?actionType=queryErrorVehicle" target="main">问题车牌号查询</a></li>
      </ul>
	</div>
<%
	}
	if(!"".equals((menuMap.get("500")))){
 %>	
	<div class="menuDiv"> 
	  <h3><img src="../images/downimg.gif"> 平台资源统计</h3> 
	  <ul>
	    <li><a href="../clusterStatisticsServlet?actionType=dgwClusterStatistics" target="main">数据网关集群</a></li>
	    <li><a href="../clusterStatisticsServlet?actionType=fesClusterStatistics" target="main">车载前置集群</a></li>
	    <li><a href="../clusterStatisticsServlet?actionType=mfesClusterStatistics" target="main">接入前置集群</a></li>
	    <li><a href="../clusterStatisticsServlet?actionType=afesClusterStatistics" target="main">应用前置集群</a></li>
	    <li><a href="../clusterStatisticsServlet?actionType=dssClusterStatistics" target="main">数据存储服务</a></li>
      </ul>
	</div>
<%
	}
	if(!"".equals((menuMap.get("600")))){
 %>
	<div class="menuDiv"> 
	  <h3><img src="../images/downimg.gif"> 平台运行监控</h3> 
	</div>
<%
	}
	if(!"".equals((menuMap.get("700")))){
 %>
	<div class="menuDiv"> 
	  <h3><img src="../images/downimg.gif"> 基础数据维护</h3> 
	  <ul>
	  	<li><a href="../defaultMsgSub?actionType=query&sys_type=fes" target="main">默认消息订阅设置</a></li>
	    <li><a href="../deviceProtocolMaintain?actionType=query" target="main">车载协议类型</a></li>
	    <li><a href="../operatorMaintain?actionType=query" target="main">运营商</a></li>
	    <li><a href="../tradeMaintain?actionType=query" target="main">行业</a></li>
	    <li><a href="../dssTypeMaintain?actionType=query" target="main">存储类型</a></li>
	    <li><a href="../monitorLogConfig?actionType=init" target="main">监控日志入库设定</a></li>
      </ul>
	</div>
<%
	}
	if(!"".equals((menuMap.get("800")))){
 %>
	<div class="menuDiv"> 
	  <h3><img src="../images/downimg.gif"> 日志查询</h3> 
	  <ul>
	    <li><a href="../operateLogQuery?actionType=init" target="main">操作日志查询</a></li>
	    <li><a href="../monitorLogQuery?actionType=init" target="main">监控日志查询</a></li>
      </ul>
	</div>
<%
	}
	if(!"".equals((menuMap.get("900")))){
 %>
	<div class="menuDiv"> 
	  <h3><img src="../images/downimg.gif"> 平台用户管理</h3> 
	  <ul>
	    <li><a href="../roleMaintain?actionType=query" target="main">角色管理</a></li>
	    <li><a href="../userMaintain?actionType=query" target="main">用户管理</a></li>
      </ul>
	</div>
<%
	}
}
 %>
</body>
<script type="text/javascript" src="../js/menuswitch.js"></script>
<script type="text/javascript">
	var mSwitch = new MenuSwitch("menuDiv");
	mSwitch.setDefault(-1);
	mSwitch.setPrevious(false);//如果是true,下拉不会收起
	mSwitch.init();
	
	document.onreadystatechange=function(){     //当页面状态改变时执行函数

 		if(document.readyState == "complete"){          //当页面加载状态为完成时执行条件内容
	        var as = document.getElementsByTagName("a");  //获取页面所有as节点
  			for(var i=0;i<as.length;i++){                                     //循环as节点
   				as[i].onclick=function(){                                         //为循环的as节点绑定 onclick事件
    				for(var j=0;j<as.length;j++){
     					as[j].style.backgroundColor="#FFFFFF";                  //将所有as背景颜色修改
     					as[j].style.color="#666666";                //将所有点击的as背景颜色修改

     					this.style.backgroundColor="#5c6574";                //将当前点击的as背景颜色修改
     					this.style.color="#FFFFFF";                //将当前点击的as背景颜色修改
    				}
   				};
  			}
 		}
 	};
</script>
</html>